package com.gugee.ins.data.collector.bloggerfollower.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * InsCommentConfig
 * @author Huangxin
 */
@Configuration
@Getter
public class InsBloggerFollowerConfig {

    /**
     * 日志打印时间要求
     */
    @NacosValue(value="${ins.data.collector.insBloggerFollower.logTime.debug.limit:50}", autoRefreshed = true)
    long insBloggerFollowerDebugTimeLimit;

    /**
     * insBloggerFollower 主线程池数
     */
    @Value(value="${ins.data.threadpools.insBloggerFollower.corePollSize}")
    int insBloggerFollowerCorePollSize;

    /**
     * insBloggerFollower kafka topic
     */
    @Value(value="${kafka.topics.insBloggerFollower.online}")
    String insBloggerFollowerOnlineTopic;

    /**
     * insBloggerPriority kafka topic
     */
    @Value(value="${kafka.topics.insBloggerPriorityCollect.online}")
    String insBloggerPriorityCollectOnlineTopic;

    /**
     * insBloggerFollower 消息重发最大次数
     */
    @NacosValue(value="${ins.data.collector.message.insBloggerFollower.retry:1}", autoRefreshed = true)
    int insBloggerFollowerRetryTimes;

    /**
     * insBloggerPriority 消息重发最大次数
     */
    @NacosValue(value="${ins.data.collector.message.insBloggerPriority.retry:1}", autoRefreshed = true)
    int insBloggerPriorityRetryTimes;

    /**
     * insBloggerFollower 消息时限范围
     */
    @NacosValue(value="${ins.data.collector.insBloggerFollower.accept.minTime.limit:1440}", autoRefreshed = true)
    int acceptInsBloggerFollowerMsgTimeMinRange;

    /**
     * 每次爬取粉丝列表的条数，0：默认值
     */
    @NacosValue(value="${ins.spider.insBloggerFollower.each.count:0}", autoRefreshed = true)
    int insSpiderBloggerFollowerEachCount;

    /**
     * 采集粉丝的条数
     */
    @NacosValue(value="${ins.data.collector.insBloggerFollower.count:1000}", autoRefreshed = true)
    int insBloggerFollowerCount;


    /**
     * 粉丝采集更新后,一定时间内不再采集 单位天
     */
    @NacosValue(value="${ins.data.collector.insBloggerFollower.intervals.day:7}", autoRefreshed = true)
    int insBloggerFollowerIntervalDay;
}
